<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tk="http://www.qdocuments.net" exclude-result-prefixes="tk">
  <xsl:import href="TreeNode.xslt"/>
  <xsl:output method="html" indent="no"/>
  <xsl:variable name="tk:Toolkit" select="/Toolkit"/>
  <xsl:variable name="tk:XmlFile"/>
  <xsl:variable name="tk:Tables" select="document($tk:XmlFile/Toolkit/tk:Module/tk:Resolvers/tk:Resolver[@List='true']/tk:Xml)/Toolkit/tk:Table"/>
  <xsl:template match="/">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <xsl:apply-templates select="$tk:Tables" mode="tk:Tree"/>
    </table>
  </xsl:template>
  <xsl:template match="tk:Table" mode="tk:Tree">
    <xsl:variable name="Data" select="$tk:Toolkit/*[local-name()=current()/@TableName]"/>
    <xsl:apply-templates select="$Data" mode="tk:TreeNode"/>
  </xsl:template>
</xsl:stylesheet>
